home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 71.zip / BS1 part 71 / X-Cad3000_d5.adf / XCdoc / defview < prev    next >
Text File  |  1991-11-22  |  3KB  |  87 lines

  1.  
  2.    3.2.2 DEFINE VIEWPORT
  3.  
  4.  
  5. The DEFINE VIEWPORT is used to define a secondary viewport within the area
  6. of the SHEET viewport. The maximum number of viewports that can be defined
  7. is 32 including the SHEET viewport.
  8.  
  9. Viewports inside the SHEET viewport are like drawings within a drawing. A
  10. secondary viewport can have an independent scale, origin and units type.
  11. This allows certain areas to be set up on the sheet for drawing scaled ob-
  12. jects, or for creating drawings that require a coordinate system with the
  13. origin ( point X 0 Y 0 ) in some place other than the bottom left of the
  14. drawing area.
  15.  
  16.  
  17.    COMMAND FORMAT
  18.  
  19.       #DEFINE VIEWPORT modifiers :Loc x1 x2 :Origin x3 [CR]
  20.  
  21. Unless the viewport window is specified explicitly, locations 'x1'and 'x2'
  22. define a window on the SHEET viewport that will become the new viewport
  23. maximum extents.
  24.  
  25. Once a viewport area has been defined, it cannot be made larger. So a
  26. viewport area should be defined with this in mind. It is better to over-
  27. estimate a viewport area as viewport windows can be clipped to a smaller
  28. area.
  29.  
  30. Unless the viewport origin is specified explicitly, location 'x3' defines
  31. the point that will become the new viewport origin. ( ie the coordinate
  32. point X0Y0 ). The viewport origin can be anywhere on the sheet, it does not
  33. have to be within the new viewport area. ( See fig. 3.4 ).
  34.  
  35.  
  36.    MODIFIERS
  37.  
  38. NAME        The name of the new viewport. This must be a unique name made
  39.             up of a maximum of 20 alphabetic characters.
  40.  
  41. UNITS       The new viewport units type. This may be one of:
  42.  
  43.                MM    Millimetres.
  44.                CM    Centimetres.
  45.                M     Metres.
  46.                KM    Kilometres.
  47.                IN    Inches.
  48.                FT    Feet.
  49.                ML    Miles.
  50.  
  51.             If the modifier is omitted, the new viewport will use the sheet
  52.             units.
  53.  
  54. SCALE       Requires a viewport scale value where the value defines the
  55.             scale as "1 to value". A value of 100 will define a viewport
  56.             scale of 1 to 100. This allows large or small objects to be
  57.             drawn in their true dimensions but at a scale relative to the
  58.             overall drawing sheet.
  59.  
  60.             The default viewport scale is 1.0 .
  61.  
  62. CUSTOM      Indicates that the viewport window area is to be defined
  63.             explicitly. When using the CUSTOM modifier, the command format
  64.             differs slightly:
  65.  
  66.                #DEFINE VIEWPORT CUSTOM modifiers :Origin x1 [CR]
  67.  
  68.             The location 'x1' defines where the bottom left corner of the
  69.             new viewport will be on the drawing sheet.
  70.  
  71. .HEIGHT     The height of the new viewport. This is specified in the units
  72.             and scale of the new viewport.
  73.  
  74. .WIDTH      The width of the new viewport. This is specified in the units
  75.             and scale of the new viewport.
  76.  
  77. .ORIGIN     Requires 2 values to specify where the origin of the new view-
  78.             port will be relative to the bottom left corner. The origin
  79.             point is given in terms of the new viewport units and scale. ie
  80.  
  81.                ORIGIN -3,5.5
  82.  
  83.             Will make the new viewport origin at the point -3.0,5.5 relative
  84.             to the bottom left corner of the new viewport ( point 'x1' ).
  85.  
  86.  
  87.